import request from "@/utils/request";
// 调用权限
export default {
  getList(data) {
    return request({
      url: "/api/workflows/app_token/",
      method: "get",
      params: data
    });
  },
  addAppToken(data) {
    return request({
      url: "/api/workflows/app_token/",
      method: "post",
      data
    });
  },
  deleteAppToken(id) {
    return request({
      url: "/api/workflows/app_token/" + id + "/",
      method: "delete"
    });
  },
  //编辑部门
  editAppToken(id, data) {
    return request({
      url: "/api/workflows/app_token/" + id + "/",
      method: "put",
      data
    });
  }
};
